"""
练习：序列的切片实践
"""

my_str = "万过薪月，翔蓝来，机掘挖学"
str1 = my_str[::-1]
print(f"反转字符串结果为：{str1}")

# 切片
result1 = str1[6:8:1]
print(f"方式1结果为：{result1}")

result2 = my_str.split("，")[1].replace("来", "")[::-1]
print(f"方式2结果为：{result2}")
